# Methods added to this helper will be available to all templates in the application.
require 'rubygems'
require 'csv'

module ApplicationHelper
  
  def csv_to_prob_record(csv_stream)
    p_record = []
    CSV::Reader.parse(csv_stream) do |row|
      #p_record.concat  "&lt;#{row[0]},#{sprintf "%.4f", row[1].to_f}&gt; "
      p_record << [row[0], row[1]];
    end
    p_record
  end
  
end
